function Circle(x, y, r)
{
  this.x = x;
  this.y = y;
  this.r = r;
}

function intersect(c1, c2)
{
  var d = Math.sqrt((c2.y-c1.y)*(c2.y-c1.y) + (c2.x-c1.x)*(c2.x-c1.x));
  return (c1.r + c2.r) >= d; 
}

var circles = [[10, 10, 50], [60, 40, 30], [100, 100, 10]].map(
  function (xyr)
  {
    return new Circle(xyr[0], xyr[1], xyr[2]);
  });

print(intersect(circles[0], circles[1]));
print(intersect(circles[0], circles[2]));
print(intersect(circles[1], circles[2]));